package org.wlgzs.shop.bean;

import java.util.ArrayList;
import java.util.List;

public class StoreExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public StoreExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andStoreIdIsNull() {
            addCriterion("store_id is null");
            return (Criteria) this;
        }

        public Criteria andStoreIdIsNotNull() {
            addCriterion("store_id is not null");
            return (Criteria) this;
        }

        public Criteria andStoreIdEqualTo(Integer value) {
            addCriterion("store_id =", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdNotEqualTo(Integer value) {
            addCriterion("store_id <>", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdGreaterThan(Integer value) {
            addCriterion("store_id >", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("store_id >=", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdLessThan(Integer value) {
            addCriterion("store_id <", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdLessThanOrEqualTo(Integer value) {
            addCriterion("store_id <=", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdIn(List<Integer> values) {
            addCriterion("store_id in", values, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdNotIn(List<Integer> values) {
            addCriterion("store_id not in", values, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdBetween(Integer value1, Integer value2) {
            addCriterion("store_id between", value1, value2, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdNotBetween(Integer value1, Integer value2) {
            addCriterion("store_id not between", value1, value2, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreNameIsNull() {
            addCriterion("store_name is null");
            return (Criteria) this;
        }

        public Criteria andStoreNameIsNotNull() {
            addCriterion("store_name is not null");
            return (Criteria) this;
        }

        public Criteria andStoreNameEqualTo(String value) {
            addCriterion("store_name =", value, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameNotEqualTo(String value) {
            addCriterion("store_name <>", value, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameGreaterThan(String value) {
            addCriterion("store_name >", value, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameGreaterThanOrEqualTo(String value) {
            addCriterion("store_name >=", value, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameLessThan(String value) {
            addCriterion("store_name <", value, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameLessThanOrEqualTo(String value) {
            addCriterion("store_name <=", value, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameLike(String value) {
            addCriterion("store_name like", value, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameNotLike(String value) {
            addCriterion("store_name not like", value, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameIn(List<String> values) {
            addCriterion("store_name in", values, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameNotIn(List<String> values) {
            addCriterion("store_name not in", values, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameBetween(String value1, String value2) {
            addCriterion("store_name between", value1, value2, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameNotBetween(String value1, String value2) {
            addCriterion("store_name not between", value1, value2, "storeName");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andSetTimeIsNull() {
            addCriterion("set_time is null");
            return (Criteria) this;
        }

        public Criteria andSetTimeIsNotNull() {
            addCriterion("set_time is not null");
            return (Criteria) this;
        }

        public Criteria andSetTimeEqualTo(String value) {
            addCriterion("set_time =", value, "setTime");
            return (Criteria) this;
        }

        public Criteria andSetTimeNotEqualTo(String value) {
            addCriterion("set_time <>", value, "setTime");
            return (Criteria) this;
        }

        public Criteria andSetTimeGreaterThan(String value) {
            addCriterion("set_time >", value, "setTime");
            return (Criteria) this;
        }

        public Criteria andSetTimeGreaterThanOrEqualTo(String value) {
            addCriterion("set_time >=", value, "setTime");
            return (Criteria) this;
        }

        public Criteria andSetTimeLessThan(String value) {
            addCriterion("set_time <", value, "setTime");
            return (Criteria) this;
        }

        public Criteria andSetTimeLessThanOrEqualTo(String value) {
            addCriterion("set_time <=", value, "setTime");
            return (Criteria) this;
        }

        public Criteria andSetTimeLike(String value) {
            addCriterion("set_time like", value, "setTime");
            return (Criteria) this;
        }

        public Criteria andSetTimeNotLike(String value) {
            addCriterion("set_time not like", value, "setTime");
            return (Criteria) this;
        }

        public Criteria andSetTimeIn(List<String> values) {
            addCriterion("set_time in", values, "setTime");
            return (Criteria) this;
        }

        public Criteria andSetTimeNotIn(List<String> values) {
            addCriterion("set_time not in", values, "setTime");
            return (Criteria) this;
        }

        public Criteria andSetTimeBetween(String value1, String value2) {
            addCriterion("set_time between", value1, value2, "setTime");
            return (Criteria) this;
        }

        public Criteria andSetTimeNotBetween(String value1, String value2) {
            addCriterion("set_time not between", value1, value2, "setTime");
            return (Criteria) this;
        }

        public Criteria andStoreIntroduceIsNull() {
            addCriterion("store_introduce is null");
            return (Criteria) this;
        }

        public Criteria andStoreIntroduceIsNotNull() {
            addCriterion("store_introduce is not null");
            return (Criteria) this;
        }

        public Criteria andStoreIntroduceEqualTo(String value) {
            addCriterion("store_introduce =", value, "storeIntroduce");
            return (Criteria) this;
        }

        public Criteria andStoreIntroduceNotEqualTo(String value) {
            addCriterion("store_introduce <>", value, "storeIntroduce");
            return (Criteria) this;
        }

        public Criteria andStoreIntroduceGreaterThan(String value) {
            addCriterion("store_introduce >", value, "storeIntroduce");
            return (Criteria) this;
        }

        public Criteria andStoreIntroduceGreaterThanOrEqualTo(String value) {
            addCriterion("store_introduce >=", value, "storeIntroduce");
            return (Criteria) this;
        }

        public Criteria andStoreIntroduceLessThan(String value) {
            addCriterion("store_introduce <", value, "storeIntroduce");
            return (Criteria) this;
        }

        public Criteria andStoreIntroduceLessThanOrEqualTo(String value) {
            addCriterion("store_introduce <=", value, "storeIntroduce");
            return (Criteria) this;
        }

        public Criteria andStoreIntroduceLike(String value) {
            addCriterion("store_introduce like", value, "storeIntroduce");
            return (Criteria) this;
        }

        public Criteria andStoreIntroduceNotLike(String value) {
            addCriterion("store_introduce not like", value, "storeIntroduce");
            return (Criteria) this;
        }

        public Criteria andStoreIntroduceIn(List<String> values) {
            addCriterion("store_introduce in", values, "storeIntroduce");
            return (Criteria) this;
        }

        public Criteria andStoreIntroduceNotIn(List<String> values) {
            addCriterion("store_introduce not in", values, "storeIntroduce");
            return (Criteria) this;
        }

        public Criteria andStoreIntroduceBetween(String value1, String value2) {
            addCriterion("store_introduce between", value1, value2, "storeIntroduce");
            return (Criteria) this;
        }

        public Criteria andStoreIntroduceNotBetween(String value1, String value2) {
            addCriterion("store_introduce not between", value1, value2, "storeIntroduce");
            return (Criteria) this;
        }

        public Criteria andStoreKindIsNull() {
            addCriterion("store_kind is null");
            return (Criteria) this;
        }

        public Criteria andStoreKindIsNotNull() {
            addCriterion("store_kind is not null");
            return (Criteria) this;
        }

        public Criteria andStoreKindEqualTo(String value) {
            addCriterion("store_kind =", value, "storeKind");
            return (Criteria) this;
        }

        public Criteria andStoreKindNotEqualTo(String value) {
            addCriterion("store_kind <>", value, "storeKind");
            return (Criteria) this;
        }

        public Criteria andStoreKindGreaterThan(String value) {
            addCriterion("store_kind >", value, "storeKind");
            return (Criteria) this;
        }

        public Criteria andStoreKindGreaterThanOrEqualTo(String value) {
            addCriterion("store_kind >=", value, "storeKind");
            return (Criteria) this;
        }

        public Criteria andStoreKindLessThan(String value) {
            addCriterion("store_kind <", value, "storeKind");
            return (Criteria) this;
        }

        public Criteria andStoreKindLessThanOrEqualTo(String value) {
            addCriterion("store_kind <=", value, "storeKind");
            return (Criteria) this;
        }

        public Criteria andStoreKindLike(String value) {
            addCriterion("store_kind like", value, "storeKind");
            return (Criteria) this;
        }

        public Criteria andStoreKindNotLike(String value) {
            addCriterion("store_kind not like", value, "storeKind");
            return (Criteria) this;
        }

        public Criteria andStoreKindIn(List<String> values) {
            addCriterion("store_kind in", values, "storeKind");
            return (Criteria) this;
        }

        public Criteria andStoreKindNotIn(List<String> values) {
            addCriterion("store_kind not in", values, "storeKind");
            return (Criteria) this;
        }

        public Criteria andStoreKindBetween(String value1, String value2) {
            addCriterion("store_kind between", value1, value2, "storeKind");
            return (Criteria) this;
        }

        public Criteria andStoreKindNotBetween(String value1, String value2) {
            addCriterion("store_kind not between", value1, value2, "storeKind");
            return (Criteria) this;
        }

        public Criteria andPhotoUrlIsNull() {
            addCriterion("photo_url is null");
            return (Criteria) this;
        }

        public Criteria andPhotoUrlIsNotNull() {
            addCriterion("photo_url is not null");
            return (Criteria) this;
        }

        public Criteria andPhotoUrlEqualTo(String value) {
            addCriterion("photo_url =", value, "photoUrl");
            return (Criteria) this;
        }

        public Criteria andPhotoUrlNotEqualTo(String value) {
            addCriterion("photo_url <>", value, "photoUrl");
            return (Criteria) this;
        }

        public Criteria andPhotoUrlGreaterThan(String value) {
            addCriterion("photo_url >", value, "photoUrl");
            return (Criteria) this;
        }

        public Criteria andPhotoUrlGreaterThanOrEqualTo(String value) {
            addCriterion("photo_url >=", value, "photoUrl");
            return (Criteria) this;
        }

        public Criteria andPhotoUrlLessThan(String value) {
            addCriterion("photo_url <", value, "photoUrl");
            return (Criteria) this;
        }

        public Criteria andPhotoUrlLessThanOrEqualTo(String value) {
            addCriterion("photo_url <=", value, "photoUrl");
            return (Criteria) this;
        }

        public Criteria andPhotoUrlLike(String value) {
            addCriterion("photo_url like", value, "photoUrl");
            return (Criteria) this;
        }

        public Criteria andPhotoUrlNotLike(String value) {
            addCriterion("photo_url not like", value, "photoUrl");
            return (Criteria) this;
        }

        public Criteria andPhotoUrlIn(List<String> values) {
            addCriterion("photo_url in", values, "photoUrl");
            return (Criteria) this;
        }

        public Criteria andPhotoUrlNotIn(List<String> values) {
            addCriterion("photo_url not in", values, "photoUrl");
            return (Criteria) this;
        }

        public Criteria andPhotoUrlBetween(String value1, String value2) {
            addCriterion("photo_url between", value1, value2, "photoUrl");
            return (Criteria) this;
        }

        public Criteria andPhotoUrlNotBetween(String value1, String value2) {
            addCriterion("photo_url not between", value1, value2, "photoUrl");
            return (Criteria) this;
        }

        public Criteria andCollectionNumberIsNull() {
            addCriterion("collection_number is null");
            return (Criteria) this;
        }

        public Criteria andCollectionNumberIsNotNull() {
            addCriterion("collection_number is not null");
            return (Criteria) this;
        }

        public Criteria andCollectionNumberEqualTo(Integer value) {
            addCriterion("collection_number =", value, "collectionNumber");
            return (Criteria) this;
        }

        public Criteria andCollectionNumberNotEqualTo(Integer value) {
            addCriterion("collection_number <>", value, "collectionNumber");
            return (Criteria) this;
        }

        public Criteria andCollectionNumberGreaterThan(Integer value) {
            addCriterion("collection_number >", value, "collectionNumber");
            return (Criteria) this;
        }

        public Criteria andCollectionNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("collection_number >=", value, "collectionNumber");
            return (Criteria) this;
        }

        public Criteria andCollectionNumberLessThan(Integer value) {
            addCriterion("collection_number <", value, "collectionNumber");
            return (Criteria) this;
        }

        public Criteria andCollectionNumberLessThanOrEqualTo(Integer value) {
            addCriterion("collection_number <=", value, "collectionNumber");
            return (Criteria) this;
        }

        public Criteria andCollectionNumberIn(List<Integer> values) {
            addCriterion("collection_number in", values, "collectionNumber");
            return (Criteria) this;
        }

        public Criteria andCollectionNumberNotIn(List<Integer> values) {
            addCriterion("collection_number not in", values, "collectionNumber");
            return (Criteria) this;
        }

        public Criteria andCollectionNumberBetween(Integer value1, Integer value2) {
            addCriterion("collection_number between", value1, value2, "collectionNumber");
            return (Criteria) this;
        }

        public Criteria andCollectionNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("collection_number not between", value1, value2, "collectionNumber");
            return (Criteria) this;
        }

        public Criteria andReviewPowerIsNull() {
            addCriterion("review_power is null");
            return (Criteria) this;
        }

        public Criteria andReviewPowerIsNotNull() {
            addCriterion("review_power is not null");
            return (Criteria) this;
        }

        public Criteria andReviewPowerEqualTo(Integer value) {
            addCriterion("review_power =", value, "reviewPower");
            return (Criteria) this;
        }

        public Criteria andReviewPowerNotEqualTo(Integer value) {
            addCriterion("review_power <>", value, "reviewPower");
            return (Criteria) this;
        }

        public Criteria andReviewPowerGreaterThan(Integer value) {
            addCriterion("review_power >", value, "reviewPower");
            return (Criteria) this;
        }

        public Criteria andReviewPowerGreaterThanOrEqualTo(Integer value) {
            addCriterion("review_power >=", value, "reviewPower");
            return (Criteria) this;
        }

        public Criteria andReviewPowerLessThan(Integer value) {
            addCriterion("review_power <", value, "reviewPower");
            return (Criteria) this;
        }

        public Criteria andReviewPowerLessThanOrEqualTo(Integer value) {
            addCriterion("review_power <=", value, "reviewPower");
            return (Criteria) this;
        }

        public Criteria andReviewPowerIn(List<Integer> values) {
            addCriterion("review_power in", values, "reviewPower");
            return (Criteria) this;
        }

        public Criteria andReviewPowerNotIn(List<Integer> values) {
            addCriterion("review_power not in", values, "reviewPower");
            return (Criteria) this;
        }

        public Criteria andReviewPowerBetween(Integer value1, Integer value2) {
            addCriterion("review_power between", value1, value2, "reviewPower");
            return (Criteria) this;
        }

        public Criteria andReviewPowerNotBetween(Integer value1, Integer value2) {
            addCriterion("review_power not between", value1, value2, "reviewPower");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}